<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.qs.po.*"%>
<%@page import="com.qs.vo.*"%>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.qs.service.*"%>
<%@page import="com.infomanage.util.Consts"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String itemId = request.getParameter("itemId");
    if(itemId == null) itemId = "";
    QsStarCheckItem item = StarCheckService.load(request, response, out);
    int deptId = -1;
    String deptName = "";
    String date = "";
	String personName = "";
	int kind = 0;
	int level = 0;
	
    int hxq = 0;
    int jdq = 0;
    int wjq = 0;
    int ssq = 0;
    int qtyq = 0;
    int ydzz = 0;
    int lpsd = 0;
    int spsd = 0;
    int xfccz = 0;
    int pcgj = 0;
    int jlq = 0;
    int dg = 0;
    int clby = 0;
    int cdzt = 0;
    int kg = 0;
    int sj = 0;
    int ps = 0;
    int ty = 0;
    int dq = 0;
    int jz = 0;
    int yl = 0;
    int wmpy = 0;
    int jlxd = 0;
    int lqm = 0;
    int fwc = 0;
    int jhyq = 0;
    int xfqc = 0;
    int ggcc = 0;
    
    if(item != null){
    	QsStarCheck bean = item.getBean();
    	Department dept = item.getDept();
    	deptId = dept.getDeptId();
    	deptName = dept.getPath();
    	personName = bean.getPersonName();
    	kind = bean.getKind();
    	level = bean.getLevel();
    	
    	date = bean.getDate();
        hxq = item.getHxq();
        jdq = item.getJdq();
        wjq = item.getWjq();
        ssq = item.getSsq();
        qtyq = item.getQtyq();
        ydzz = item.getYdzz();
        lpsd = item.getLpsd();
        spsd = item.getSpsd();
        xfccz = item.getXfccz();
        pcgj = item.getPcgj();
        jlq = item.getJlq();
        dg = item.getDg();
        clby = item.getClby();
        cdzt = item.getCdzt();
        kg = item.getKg();
        sj = item.getSj();
        ps = item.getPs();
        ty = item.getTy();
        dq = item.getDq();
        jz = item.getJz();
        yl = item.getYl();
        wmpy = item.getWmpy();
        jlxd = item.getJlxd();
        lqm = item.getLqm();
        fwc = item.getFwc();
        jhyq = item.getJhyq();
        xfqc = item.getXfqc();
        ggcc = item.getGgcc();
        xfccz = item.getXfccz();
    }

%>
<html>
<head>
	<title>星级考核</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<link href="<%=request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath() %>/css/table.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath() %>/css/calendar.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/calendar.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/common.js"></script>
	<script type="text/javascript">
	   function init() {
		   if("" != "<%=itemId%>") { // 修改
			   form1.kind.value = <%=kind%>
			   form1.level.value = <%=level%>
		   }
	   }
	   // 提交
	   function doSubmit(){
	   		if(validate()){
	   			return;
	   		}
		 	if("" == "<%=itemId%>") {
		 		form1.actionType.value = "add";
			}else {
		 		form1.actionType.value = "modify";
		 		
			}
		 	form1.submit();
	   }

	   function validate(){
	   		if(form1.deptId.value == -1){
	   			alert("单位不能为空！");
	   			return true;
	   		}

	   		if(form1.date.value == ""){
	   			alert("考核日期不能为空！");
	   			return true;
	   		}

	   		if(form1.personName.value == ""){
	   			alert("被考核人不能为空！");
	   			return true;
	   		}
	   		return false;
	   }
	   
	   function showError(error){
		   alert(error);
	   }

	   function showInfo(info){
		   alert(info);
		   window.returnValue = "ok";
		   window.close();
	   }
	</script>
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0"  onload="init();" onclick="clickBody();">
	<form name="form1" action="check_action.jsp" method="post" target="actionFrame">
	<input type="hidden" name="itemId" value="<%=itemId%>">
	<input type="hidden" name="actionType">
	
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>星级考核</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td height="100%">
				<div style="height: 100%;width: 100%;overflow: auto;">
				<!-- 数据项 -->
				<table class="dataTable" >
					<col width="15%">
					<col width="15%">
					<col width="20%">
					<col width="15%">
					<col width="15%">
					<col width="20%">
					<tr>
						<td class="field" colspan="2">
							单位
						</td>
						<td colspan="4">
							<span class="treeSpan" onclick="showTree(this, '<%=request.getContextPath() %>/infomanage/common/deptTree.jsp');" treeSelect="true">
								<input name="deptname" style="width: 100%;" readonly="readonly" 
								treeSelect="true" value="<%=deptName %>"><input name="deptId"  type="hidden" value="<%=deptId %>">
							</span>
						</td>
					</tr>
					<tr>
						<td class="field" colspan="2">
							考核日期
						</td>
						<td colspan="4">
							<input  type="text" name="date" value="<%=date %>"  style="width: 230px;cursor: hand;" id="date" onClick="return showCalendar(this.id, 'y-mm');" readonly="readonly"><img 
									src="<%=request.getContextPath() %>/img/tip_calender.gif" style="cursor: hand;" width="16" height="16" >
						</td>

					</tr>
					<tr>
						<td class="field" colspan="2">
							被考核人
						</td>
						<td colspan="4">
							<span class="treeSpan" onclick="showTree(this, '<%=request.getContextPath() %>/infomanage/common/personTree.jsp');" treeSelect="true">
								<input name="personName"  value="<%=personName %>"  style="width: 100%;" readonly="readonly" 
								treeSelect="true"><input type="hidden">
							</span>
						</td>

					</tr>
					<tr>
						<td class="field" colspan="2">
							考核类型
						</td>
						<td colspan="4">
							<select name="kind">
									<option value="<%=StarCheckService.CHECK_TYPE_HIGHER %>">上级检查</option>
									<option value="<%=StarCheckService.CHECK_TYPE_ZHONGDUI %>">中队考核</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="field" rowspan="5">
							仪器操作
						</td>
						<td class="field" >
							呼吸器
						</td>
						<td>
							<input name="hxq" value="<%=hxq %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" rowspan="5">
							消防技能
						</td>
						<td class="field" >
							原地着装
						</td>
						<td>
							<input name="ydzz" value="<%=ydzz %>" type="text" style="width: 100%"/>
						</td>
					</tr>
					<tr>
						<td class="field" >
							检定器
						</td>
						<td>
							<input name="jdq" value="<%=jdq %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							两盘水带
						</td>
						<td>
							<input name="lpsd" value="<%=lpsd %>" type="text" style="width: 100%"/>
						</td>
					</tr>
					<tr>
						<td class="field" >
							瓦检器
						</td>
						<td >
							<input name="wjq" value="<%= wjq%>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							三盘水带
						</td>
						<td>
							<input name="spsd" value="<%=spsd %>" type="text" style="width: 100%"/>
						</td>
					</tr>
					<tr>
						<td class="field" >
							苏生器
						</td>
						<td>
							<input name="ssq" value="<%= ssq%>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							消防车操作
						</td>
						<td>
							<input name="xfccz" value="<%= xfccz%>" type="text" style="width: 100%"/>
						</td>
					</tr>
					<tr>
						<td class="field" >
							其他仪器
						</td>
						<td>
							<input name="qtyq" value="<%=qtyq %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							破拆工具
						</td>
						<td>
							<input name="pcgj" value="<%= pcgj%>" type="text" style="width: 100%"/>
						</td>						
					</tr>
					<tr>
						<td class="field" rowspan="11">
							综合体能
						</td>
						<td class="field" >
							检力器
						</td>
						<td>
							<input name="jlq" value="<%=jlq %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" rowspan="4">
							装备维护
						</td>
						<td class="field" >
							救护仪器
						</td>
						<td>
							<input name="jhyq" value="<%=jhyq %>" type="text" style="width: 100%"/>
						</td>
					</tr>
					<tr>
						<td class="field" >
							单杠
						</td>
						<td>
							<input name="dg" value="<%=dg %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							消防器材
						</td>
						<td>
							<input name="xfqc" value="<%= xfqc%>" type="text" style="width: 100%"/>
						</td>						
					</tr>
					<tr>
						<td class="field" >
							爬绳
						</td>
						<td>
							<input name="ps" value="<%=ps %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							公共财产
						</td>
						<td>
							<input name="ggcc" value="<%=ggcc %>" type="text" style="width: 100%"/>
						</td>						
					</tr>
					<tr>
						<td class="field" >
							跳远
						</td>
						<td>
							<input name="ty" value="<%= ty%>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							车辆保养
						</td>
						<td>
							<input name="clby" value="<%=clby %>" type="text" style="width: 100%"/>
						</td>						
					</tr>
					<tr>
						<td class="field" >
							蹲起
						</td>
						<td>
							<input name="dq" value="<%=dq %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" rowspan="3">
							日常考核
						</td>
						<td class="field" >
							迟到早退
						</td>
						<td>
							<input name="cdzt" value="<%=cdzt %>" type="text" style="width: 100%"/>
						</td>						
					</tr>
					<tr>
						<td class="field" >
							举重
						</td>
						<td>
							<input name="jz" value="<%=jz %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							旷工
						</td>
						<td>
							<input name="kg" value="<%= kg%>" type="text" style="width: 100%"/>
						</td>						
					</tr>
					<tr>
						<td class="field" >
							哑铃
						</td>
						<td>
							<input name="yl" value="<%=yl %>" type="text" style="width: 100%"/>
						</td>
						<td class="field" >
							事假
						</td>
						<td>
							<input name="sj" value="<%=sj %>" type="text" style="width: 100%"/>
						</td>						
					</tr>
					<tr>
						<td class="field" >
							万米配氧
						</td>
						<td>
							<input name="wmpy" value="<%= wmpy%>" type="text" style="width: 100%"/>
						</td>
						<td class="field"/>
						</td>
						<td class="field"/>
						</td>
						<td>
						</td>					
					</tr>
					<tr>
						<td class="field" >
							激烈行动
						</td>
						<td>
							<input name="jlxd" value="<%=jlxd %>" type="text" style="width: 100%"/>
						</td>
						<td class="field"/>
						</td>
						<td class="field"/>
						</td>
						<td>
						</td>						
					</tr>
					<tr>
						<td class="field" >
							两千米
						</td>
						<td>
							<input name="lqm" value="<%=lqm %>" type="text" style="width: 100%"/>
						</td>
						<td class="field"/>
						</td>
						<td class="field"/>
						</td>
						<td>
						</td>					
					</tr>
					<tr>
						<td class="field" >
							俯卧撑
						</td>
						<td>
							<input name="fwc" value="<%=fwc%>" type="text" style="width: 100%"/>
						</td>
						<td class="field"/>
						</td>
						<td class="field"/>
						</td>
						<td>
						</td>					
					</tr>
					<tr>
						<td class="field" colspan="2">
							星级
						</td>
						<td colspan="4">
								<select name="level">
								<option value=0>☆☆☆☆☆</option>
								<option value=1>★☆☆☆☆</option>
								<option value=2>★★☆☆☆</option>
								<option value=3>★★★☆☆</option>
								<option value=4>★★★★☆</option>
								<option value=5>★★★★★</option>
							</select>
						</td>
					</tr>
				</table>
				</div>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="tableBtn">
				<span onclick="doSubmit();">确定</span>
				<span onclick="window.close();">取消</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
	</form>
	<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
	<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>